<div class="menu">
<?php  echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="guiasEstudiantes index">
	<div align="center"><?php echo $this->Html->image('control_guias_titulo.png', array('alt'=> __('Guias Estudiantes', true), 'border' => '0'));?></div>
	<?php echo $this->Html->link($this->Html->image('add_guia.png', array('alt'=> __('Agregar Guia Estudiante', true), 'border' => '0')),
												'../guias_estudiantes/add/'.$estudiante_presente['Estudiante']['id'],array('escape' => false));?>
												
	<h4><?php __('Estudiante: '.$estudiante_presente['Estudiante']['nombre_completo']); ?></h4>
    <h4><?php __('Centro de Apoyo Escolar: '.$cae['nombre']); ?></h4>
    <h4><?php __('Docente: '.$nombre_usuario['User']['nombre_completo']); ?></h4>
   
      											
	<table class="tabla_formulario">
	<tr>		
			<th><?php echo $this->Paginator->sort('guia_id');?></th>			
			<th><?php echo $this->Paginator->sort('fecha_inicio');?></th>
			<th><?php echo $this->Paginator->sort('fecha_fin');?></th>			
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($guias_estudiantes as $guiasEstudiante):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>		
		<td>
			<?php echo $guiasEstudiante['Guia']['nombre']; ?>
		</td>		
		<td><?php echo $guiasEstudiante['GuiasEstudiante']['fecha_inicio']; ?>&nbsp;</td>
		<td><?php echo $guiasEstudiante['GuiasEstudiante']['fecha_fin']; ?>&nbsp;</td>		
		<td class="actions">			
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $guiasEstudiante['GuiasEstudiante']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $guiasEstudiante['GuiasEstudiante']['id']), null, sprintf(__('Quiere eliminar esta guia: %s?', true), $guiasEstudiante['Guia']['nombre'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de %count% en total, empieza con el registro %start%, termina en %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
